const co = require('co');
const OSS = require('ali-oss');
module.exports = class extends think.Service {
  constructor(ctx) {
    super(ctx);
  }
  // 初始化 
  async register(ctx, type) {
    const region = think.config('ext.alioss.region');
    const accessKeyId = think.config('ext.alioss.accessKeyId');
    const accessKeySecret = this.config('ext.alioss.accessKeySecret') || '';
    const client = new OSS({
      region,
      accessKeyId,
      accessKeySecret
    });
  }
}